package com.mapper;

import com.pojo.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description course
 * @author 
 * @date 2022-12-19
 */
@Mapper
@Repository
public interface CourseMapper {

    /**
    * 新增
    * @author 
    * @date 2022/12/19
    **/
    int insert(Course course);

    /**
    * 刪除
    * @author 
    * @date 2022/12/19
    **/
    int delete(int id);

    /**
    * 更新
    * @author 
    * @date 2022/12/19
    **/
    int update(Course course);

    public Object queryByCourseName(String courseName);

    /**
    * 查询 分页查询
    * @author 
    * @date 2022/12/19
    **/
    List<Course> pageList(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize);


}